<h1>Menú de la página</h1>
<br><br>
<div class="menu-admin">
	<?php $url_menu_pag_agregar = $this->baseUrl.'/admin/menupag/agregar/pagina/'.$this->id_pagina;?>
	<a href="<?php echo $url_menu_pag_agregar;?>">Agregar</a>
</div>
<br>
<?php if($this->paginasMenues):?>
		  		
	<table>
		<tr>
			<th><a href="<?php echo $this->baseUrl; ?>/admin/menupag/index/pagina/<?php echo $this->id_pagina;?>/orden/id_menu/asc/<?php echo !$this->orden_asc;?>">Id</a></th>
			<th><a href="<?php echo $this->baseUrl; ?>/admin/menupag/index/pagina/<?php echo $this->id_pagina;?>/orden/titulo/asc/<?php echo !$this->orden_asc;?>">Titulo</a></th>
			<th><a href="<?php echo $this->baseUrl; ?>/admin/menupag/index/pagina/<?php echo $this->id_pagina;?>/orden/link/asc/<?php echo !$this->orden_asc;?>">Link</a></th>
			<th><a href="<?php echo $this->baseUrl; ?>/admin/menupag/index/pagina/<?php echo $this->id_pagina;?>/orden/alt/asc/<?php echo !$this->orden_asc;?>">Alt</a></th>
			<th colspan="2">Opciones</th>
		</tr>

	  	<?php foreach($this->paginasMenues as $paginaMenu):?>
			<?php
			$url_menu_pag_modificar = $this->baseUrl.'/admin/menupag/modificar/menu/'.$paginaMenu->id_menu.'/pagina/'.$paginaMenu->id_pagina; 
			$url_menu_pag_eliminar  = $this->baseUrl.'/admin/menupag/eliminar/menu/'.$paginaMenu->id_menu.'/pagina/'.$paginaMenu->id_pagina;
			?>
			<tr>
				<td nowrap><?php echo $paginaMenu->id_menu; ?></td>
				<td nowrap><?php echo $paginaMenu->titulo; ?></td>
				<td nowrap><a href="<?php echo $paginaMenu->link;?>"><?php echo $paginaMenu->link;?></a></td>
				<td nowrap><?php echo $paginaMenu->alt; ?></td>
				<td nowrap>
					<div class="menu-admin">
						<a title="Modificar" href="<?php echo $url_menu_pag_modificar;?>">Mod</a>
						<a title="Eliminar" href="<?php echo $url_menu_pag_eliminar;?>">Eli</a>
					</div>
				</td>				
			</tr>
		<?php endforeach; ?>
	</table>
<?php endif; ?>
<br>
<div class="menu-admin">
	<?php $url_menu_pag_agregar = $this->baseUrl.'/admin/menupag/agregar/pagina/'.$this->id_pagina;?>
	<a href="<?php echo $url_menu_pag_agregar;?>">Agregar</a>
</div>
<br>
<?php $url = $this->baseUrl.'/admin/paginas/modificar/id/'.$this->id_pagina;?>
<a href="<?php echo $url; ?>">Volver a la página</a>
